package com.my.datastructure;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * @author marshal
 * @date 2021-06-02
 */
public class ListsTest {
    public static void main(String[] args) {
        List<Integer> list = List.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        List<List<Integer>> partition = Lists.partition(list, 2);
        System.out.println(partition.get(0));
    }
}
